﻿using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using WPFExcelReport.Helpers;
namespace WPFExcelReport
{
    public partial class TNWFAPP
    {

        public TNWFAPP()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VICC_WFEVENTS();
            this.DataContext = MV;
            InitializeComponent();
        }
        public override void OnEXAUFChg(string vlaue)
        {
            base.OnEXAUFChg(vlaue); 
            dwData = TBMain.NewRow();
            dwData["MANDANT"] = app.Mandant;
            dwData["KRS"] = KRS;
            dwData["LFD"] = LFD;
            dwData["POS"] = POS;
            dwData["WFEVENTS"] = ART;
            dwData["CONTROL"] = "  "; 
            SResult = TMV.QWFEVENTS(dwData);
            MergeData(SResult, true);
            if (TBMain.Rows.Count > 0)
                IsERL = false;
        } 
    } 
}
